package com.learn.ioc.component;

// @Controller(value = "a solid soldier")

import com.learn.ioc.api.ISoldierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class SoldierController {
    @Autowired
    private SoldierService soldierService;

    // private ISoldierService soldierService;

    // @Autowired
    // public SoldierController(SoldierService soldierService) {
    //     this.soldierService = soldierService;
    // }
    // @Autowired
    // public void setSoldierService(SoldierService soldierService) {
    //     this.soldierService = soldierService;
    // }

    public void getMessage() {

        soldierService.getMessage();
    }

}
